!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="56ec7ead-8ab8-47e1-b68a-3f26466962b8",e._sentryDebugIdIdentifier="sentry-dbid-56ec7ead-8ab8-47e1-b68a-3f26466962b8")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6020,8846],{1557:function(e,t,r){"use strict";r.d(t,{U:function(){return n}});let n=(0,r(52983).createContext)({})},79187:function(e,t,r){"use strict";r.d(t,{u:function(){return N}});var n=r(97458),a=r(52983),o=r(23113),s=r(27793),l=r(91394),i=r(17842),c=r(45451);let u=()=>(0,a.useCallback)(e=>{let{collectionId:t,collectionName:r,fileId:n,location:a}=e;(0,c.sendGTMEvent)({collection_id:t,collection_name:r,event_name:"add_to_collection",event:"ga4event",file_id:n,location:a})},[]),d=()=>(0,a.useCallback)(e=>{let{location:t,fileId:r}=e;(0,c.sendGTMEvent)({event:"ga4event",event_name:"collect",location:t,file_id:r})},[]);var f=r(49504),h=r(63202);let p=async e=>{let{id:t,collectionId:r,resourceType:n}=e,a=new URLSearchParams;return a.append("collectionId",r.toString()),a.set("resourceType",n),await (0,h.c)("/api/user/resources/".concat(t,"/collections?").concat(a.toString()),"DELETE")},m=async e=>{let{id:t,collectionId:r,resourceType:n}=e;return await (0,h.c)("/api/user/resources/".concat(t,"/collections"),"POST",{collectionId:r,resourceType:n})};var v=r(58058),g=r.n(v),x=r(10893);let b=()=>{let{t:e}=(0,x.$G)("detailCommon");return(0,n.jsxs)("div",{className:"flex items-center justify-between gap-2 px-4 py-2 text-sm text-surface-foreground-1",children:[(0,n.jsx)("span",{className:"whitespace-nowrap text-sm font-semibold text-surface-foreground-1",children:e("savedSuccessfully")}),(0,n.jsx)(g(),{href:"/user/collections",legacyBehavior:!0,children:(0,n.jsx)("span",{className:"cursor-pointer whitespace-nowrap text-xs font-normal !text-surface-foreground-accent-0",children:e("seeMyCollections")})})]})},w=e=>{let{type:t,id:r,location:c}=e,[h,v]=(0,a.useState)(!1),[g,x]=(0,a.useState)(!1),w=(0,f.gx)(),{openToast:y}=(0,i.x_)(),j=u(),$=(0,o.a)("smMax"),k=(0,l.d)(),{loginUrl:C,setLoginCookies:L}=(0,s.J)(),N=d(),_=(0,a.useCallback)(async(e,a)=>{try{v(!0),await m({id:r,collectionId:e,resourceType:t}),j({fileId:r,collectionId:e,collectionName:a,location:c}),y({message:(0,n.jsx)(b,{}),showIcon:!1,showCloseButton:!1,position:$?"bottom-center":"top-right"}),w()}catch(e){console.error(e),y()}finally{v(!1),$&&x(!1)}},[r,t,j,c,y,$,w,x]);return{isOpen:g,loading:h,setIsOpen:x,handleAddToCollection:_,handleRemoveFromCollection:(0,a.useCallback)(async e=>{try{v(!0),await p({id:r,collectionId:e,resourceType:t}),w()}catch(e){console.error(e),y()}finally{v(!1)}},[r,w,y,t]),onButtonOpenClick:()=>{if(!k){L(),window.location.href=C;return}w(),x(!0),N({location:c,fileId:r})},handleOpenChange:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];x(e)}}};var y=r(7616),j=r(94498),$=r(99);let k=()=>{let{data:e,meta:{pagination:{nextPage:t}}}=(0,y.Dv)(j.HQ);return{collections:e,nextPage:t}},C=()=>{let{collections:e,nextPage:t}=k(),[r,n]=(0,a.useState)([]),o=(0,y.b9)(j.GD),s=(0,a.useRef)();(0,a.useEffect)(()=>{(null==e?void 0:e.length)>0&&n(e.map($.V))},[e,t]);let l=null!==t,i=t=>{n((null==e?void 0:e.filter(e=>e.name.toLowerCase().includes(t.toLowerCase()))).map($.V))},c=async e=>{s.current&&clearTimeout(s.current),s.current=setTimeout(async()=>{o(e)},350)};return{isSearchByApi:l,searchCollections:r,handleSearch:e=>{l?c(e):i(e)}}};var L=r(1557);let N=e=>{let{children:t,id:r,type:o,location:s}=e,{handleAddToCollection:l,handleRemoveFromCollection:i,loading:c,isOpen:u,setIsOpen:d,onButtonOpenClick:f,handleOpenChange:h}=w({type:o,id:r,location:s}),{searchCollections:p,isSearchByApi:m,handleSearch:v}=C(),g=(0,a.useMemo)(()=>({id:r,type:o,loading:c,isOpen:u,searchCollections:p,isSearchByApi:m,setIsOpen:d,handleSearch:v,handleAddToCollection:l,handleRemoveFromCollection:i,onButtonOpenClick:f,handleOpenChange:h}),[l,i,v,r,u,m,c,p,d,f,h,o]);return(0,n.jsx)(L.U.Provider,{value:g,children:t})}},88659:function(e,t,r){"use strict";r.d(t,{r:function(){return o}});var n=r(52983),a=r(1557);let o=()=>(0,n.useContext)(a.U)},99:function(e,t,r){"use strict";r.d(t,{V:function(){return n}});let n=e=>{var t,r;return{id:e.id,name:e.name,author:(null===(t=e.author)||void 0===t?void 0:t.name)||void 0,hasResourceInCollection:e.hasResourceInCollection,preview:null===(r=e.previews[0])||void 0===r?void 0:r.url}}},41902:function(e,t,r){"use strict";r.d(t,{P:function(){return s}});var n=r(87420),a=r(88161);let o={icon:"/author/[authorSlug]/icons",video:"/author/[authorSlug]/videos",regular:"/author/[authorSlug]",animatedIcon:"/author/[authorSlug]/animated-icons",sticker:"/author/[authorSlug]/stickers",creator:"/creator/[authorSlug]",model3d:"/author/[authorSlug]/3d-models",font:"/author/[authorSlug]"},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"regular",r=o[t],s=(0,n.$T)(r);return{href:(0,a.E)(r,{authorSlug:e}),as:"".concat((0,a.E)(s,{authorSlug:e}))}}},45588:function(e,t,r){"use strict";r.d(t,{dM:function(){return c},$Y:function(){return p}});var n=r(97458),a=r(81157),o=r(59251),s=r(58058),l=r.n(s),i=r(10893);let c=e=>{let{resourceId:t,tags:r}=e;return r&&r.length>0?(0,n.jsx)(u,{tags:r,resourceId:t}):null},u=e=>{let{tags:t,resourceId:r}=e,a=f(t,r),{t:s}=(0,i.$G)("common");return(0,n.jsx)("div",{className:"$mb-10 $overflow-hidden","data-cy":"related-tags",children:(0,n.jsx)(o.DraggableNavigation,{arrowPrevAriaLabel:s("previous"),arrowNextAriaLabel:s("next"),arrowDataCy:"related-tags-detail",children:(0,n.jsx)("ul",{className:"$flex $gap-10",children:a.map(e=>(0,n.jsx)("li",{children:(0,n.jsx)(d,{tag:e})},e.slug))})})})},d=e=>{let{tag:t}=e,{name:r,href:o,as:s}=t;return(0,n.jsx)(l(),{passHref:!0,legacyBehavior:!0,href:o,prefetch:!1,as:s,children:(0,n.jsx)(a.f5,{as:"a",color:"gray",size:"xs",weight:"normal",className:"$rounded-full $px-15 $lowercase","data-cy":"related-tag",children:r})})},f=(e,t)=>{let r="#referrer=detail&resource=".concat(t);return e.map(e=>{let{slug:t,href:n,as:a,name:o}=e;return{slug:t,href:"".concat(n).concat(r),as:a?"".concat(a).concat(r):void 0,name:o}})};r(33523);var h=r(26981);let p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=(0,h.$)(e);return t?t.map(t=>{let{name:n,slug:a}=t;return{name:n,slug:a,href:"".concat(e,"/").concat(a),as:"".concat(r,"/").concat(a)}}):[]}},55337:function(e,t,r){"use strict";r.d(t,{y:function(){return n}});let n=(0,r(52983).createContext)({})},31154:function(e,t,r){"use strict";r.d(t,{g:function(){return p}});var n=r(97458),a=r(53344),o=r.n(a),s=r(52983),l=r(55563),i=r(7616),c=r(18547);let u=()=>(0,i.b9)(c.$);var d=r(55337);let f=o()(()=>Promise.all([r.e(9474),r.e(8970)]).then(r.bind(r,18970)).then(e=>e.ModalReport),{loadableGenerated:{webpack:()=>[18970]}}),h={interactionType:"onload"},p=e=>{let{id:t,type:r,children:a}=e,[o,i]=(0,s.useState)(!1),[c,p]=(0,s.useState)(!1),m=(0,l.X)(),v=u(),g=(0,s.useCallback)(()=>{p(!0),i(!0),m(h)},[m]),x=(0,s.useCallback)(()=>{v(!1),p(!1)},[v]),b=(0,s.useMemo)(()=>({id:t,type:r,handleOpen:g}),[t,r,g]);return(0,n.jsxs)(d.y.Provider,{value:b,children:[a,o&&(0,n.jsx)(f,{isOpen:c,onFinish:x})]})}},40308:function(e,t,r){"use strict";r.d(t,{_:function(){return u}});var n=r(97458),a=r(23113),o=r(53344),s=r.n(o),l=r(79187),i=r(88659);let c=s()(()=>Promise.all([r.e(8454),r.e(8238),r.e(5987)]).then(r.bind(r,44991)).then(e=>e.DetailAddToCollectionModal),{loadableGenerated:{webpack:()=>[44991]},ssr:!1}),u=e=>{let{children:t,id:r,type:a,location:o}=e;return(0,n.jsx)(l.u,{id:r,type:a,location:o,children:(0,n.jsx)(d,{id:r,type:a,children:t})})},d=e=>{let{children:t,id:r,type:o}=e,{isOpen:s,handleOpenChange:l}=(0,i.r)(),u=(0,a.a)("smMax");return(0,n.jsxs)(n.Fragment,{children:[t,s&&u&&(0,n.jsx)(c,{id:r,type:o,onOpenChange:l})]})}},51523:function(e,t,r){"use strict";r.d(t,{K:function(){return h}});var n=r(97458),a=r(86101),o=r(2200),s=r(54532),l=r(57291),i=r(58058),c=r.n(i),u=r(10893),d=r(52983),f=r(41902);let h=e=>{let{author:t,resourceType:r,resourceName:i}=e,c=(0,f.P)(t.slug,r),u=(0,o.n)(),h=(0,d.useRef)(null),[m,v]=(0,d.useState)(!1),g=(0,d.useRef)(null),x="freepik"===t.slug||"font"!==r;return(0,d.useEffect)(()=>{let e=()=>{if(h.current){let{scrollWidth:e,clientWidth:t}=h.current;v(e>t)}},t=()=>{g.current&&clearTimeout(g.current),g.current=setTimeout(()=>{e()},300)};return e(),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t),g.current&&clearTimeout(g.current)}},[i]),(0,n.jsxs)("div",{className:"grid grid-cols-[auto_1fr] grid-rows-[auto_auto] items-center justify-items-start gap-x-2 text-xs leading-relaxed text-surface-foreground-3 lg:max-w-[500px]",children:[(0,n.jsx)("div",{className:"row-span-2",children:(0,n.jsx)(p,{shouldShowLink:x,authorPath:c,className:(0,l.cx)("inline-block transition-all duration-300 ease-out",c&&"hover:brightness-75"),children:(0,n.jsx)(s.q,{size:"sm",image:t.avatar})})}),(0,n.jsx)(a.u,{colorText:"white",backgroundColor:"grayEbony",container:u.current,showTooltip:m,trigger:(0,n.jsx)("h1",{ref:h,className:"max-w-full truncate text-xs font-semibold",children:i}),children:i}),(0,n.jsx)(p,{shouldShowLink:x,authorPath:c,className:(0,l.cx)("text-surface-foreground-3",c&&"hover:text-surface-foreground-1"),children:t.name})]})},p=e=>{let{authorPath:t,shouldShowLink:r,children:a,className:o}=e,{t:s}=(0,u.$G)("common");return r?(0,n.jsx)(c(),{href:t.href,as:t.as,"aria-label":s("linkToAuthorLabel"),className:o,children:a}):(0,n.jsx)("p",{className:o,children:a})}},90580:function(e,t,r){"use strict";r.d(t,{m:function(){return o}});var n=r(97458),a=r(57291);let o=e=>{let{className:t,primaryBar:r,author:o,preview:l,smartBar:i,children:c,previewCaption:u,keywords:d,isModal:f=!1,isActionInProgress:h=!1}=e;return(0,n.jsxs)("div",{className:(0,a.cx)("max-w-[1920px] mx-auto grid gap-5 grid-cols-1 xs:grid-cols-[1fr_auto]",!f&&"pt-2 px-5 lg:px-10 pb-5",f&&"pt-5 sm:pt-0",h&&"pointer-events-none relative",t),children:[(0,n.jsx)(s,{isActionInProgress:h}),(0,n.jsx)("div",{className:"-mb-3 min-h-10 xs:mb-0",children:r}),(0,n.jsx)("div",{className:"-mx-5 xs:col-span-2 sm:mx-0 ",children:l}),u&&(0,n.jsx)("div",{className:"xs:col-span-2",children:u}),i&&(0,n.jsx)("div",{className:"min-h-[60px] xs:col-span-2",children:i}),(0,n.jsx)("div",{className:"xs:-order-1",children:o}),(0,n.jsx)("div",{className:"empty:hidden xs:col-span-2",children:c}),d&&(0,n.jsx)("div",{className:"xs:col-span-2",children:d})]})},s=e=>{let{isActionInProgress:t}=e;return t?(0,n.jsx)("div",{className:"pointer-events-auto absolute inset-0 cursor-wait"}):null}},47149:function(e,t,r){"use strict";r.r(t),r.d(t,{Seo:function(){return h}});var n=r(97458),a=r(45227),o=r(87420),s=r(51242),l=r(16388),i=r.n(l),c=r(52983),u=r(12976);let d=[{rel:"preconnect",href:"https://img.freepik.com"},{rel:"preconnect",href:u.p},{rel:"preconnect",href:"https://static.cdnpk.net"},{rel:"dns-prefetch",href:"https://img.freepik.com"}],f=e=>{let{title:t,description:r,url:n,image:a,hashtags:o=[],type:s}=e;return(0,c.useMemo)(()=>{let e=null!=a?a:{url:"".concat(u.p,"/meta-tags-social/og-freepik-home-en.png?w=1200&h=675"),width:1200,height:675},l="".concat(r).concat(o.length>0?" ".concat(o.map(e=>"#".concat(e)).join(" ")):"");return[{property:"og:title",content:t},{property:"og:description",content:l},{property:"og:type",content:s},{property:"og:url",content:n},{property:"og:image",content:e.url},{property:"og:image:width",content:"".concat(e.width)},{property:"og:image:height",content:"".concat(e.height)},{property:"og:image:alt",content:t},{property:"og:site_name",content:"Freepik"},{property:"fb:admins",content:"1031507953"},{property:"twitter:card",content:"summary_large_image"},{property:"twitter:site",content:"@freepik"},{property:"twitter:creator",content:"@freepik"},{property:"twitter:title",content:t},{property:"twitter:image:src",content:e.url},{property:"twitter:url",content:n},{property:"twitter:description",content:l}]},[a,r,o,t,s,n])},h=e=>{var t;let{title:r,description:l,cdns:u,image:h,alternates:p,noIndex:m=!1,excludeCanonical:v=!1,replaceCanonical:g=[],hashtags:x,forceUrl:b,type:w="article",ogTitle:y,ogDescription:j,onlyNoIndex:$=!1}=e,k=(0,o.ZK)(),C=(0,a.to)({withParams:!1,replacePaths:!0}),L=(0,a.to)({withQuery:!1,withParams:!1,replacePaths:!0}),N=f({title:null!=y?y:r,description:null!=j?j:l,url:null!=b?b:C,image:h,hashtags:x,type:w}),_=(0,c.useMemo)(()=>g.reduce((e,t)=>{let{matcher:r,replace:n}=t;return e.replace(r,n)},L),[L,g]);return(0,n.jsxs)(i(),{children:[(0,n.jsx)("title",{children:r}),l&&(0,n.jsx)("meta",{name:"description",content:l}),N.map(e=>{let{property:t,content:r}=e;return(0,n.jsx)("meta",{property:t,content:r},t)}),d.map(e=>{let{rel:t,href:r,crossOrigin:a}=e;return(0,n.jsx)("link",{rel:t,href:r,crossOrigin:a},"".concat(t,"-").concat(r,"-").concat(a))}),null==u?void 0:u.map(e=>(0,n.jsx)("link",{rel:"dns-prefetch",href:e},e)),(0,n.jsx)("meta",{name:"p:domain_verify",content:"fdda3a988da750af54ad90466dd90119"}),(0,n.jsx)("meta",{name:"facebook-domain-verification",content:"3oh58risl8zubokve93o200pvyihj0"}),(0,n.jsx)("meta",{name:"robots",content:"max-image-preview:large"}),(0,n.jsx)("meta",{name:"lang",content:k}),$&&(0,n.jsx)("meta",{name:"robots",content:"noindex"}),!$&&(m||s.Lv.includes(k))&&(0,n.jsx)("meta",{name:"robots",content:"noindex, nofollow, noarchive"}),!v&&(0,n.jsx)("link",{rel:"canonical",href:null!=b?b:_}),null==p?void 0:null===(t=p.langs)||void 0===t?void 0:t.filter(e=>!s.Lv.includes(e.lang)).map(e=>{let{href:t,lang:r}=e;return(0,n.jsx)("link",{rel:"alternate",hrefLang:r,href:t},r)}),(null==p?void 0:p.default)&&(0,n.jsx)("link",{rel:"alternate",hrefLang:"x-default",href:null==p?void 0:p.default}),"en"===k&&(0,n.jsx)("link",{rel:"manifest",href:"/manifest.json"})]})}},55563:function(e,t,r){"use strict";r.d(t,{X:function(){return o}});var n=r(45451),a=r(52983);let o=()=>(0,a.useCallback)(e=>{(0,n.sendGTMEvent)({event:"ga4event",event_name:"report_content",interaction_type:e.interactionType})},[])},80719:function(e,t,r){"use strict";r.d(t,{X:function(){return a}});var n=r(63202);let a=e=>{let{page:t,resourceId:r,searchTerm:a,collectionIds:o,ownership:s}=e,l=o?o.join(","):void 0,i={page:"".concat(t),...r&&{resourceId:"".concat(r)},...a&&{"filter[term]":a},...l&&{"filter[ids]":l},...s&&{"filter[ownership]":s}},c="/api/user/collections?".concat(new URLSearchParams(i));return(0,n.c)(c,"GET")}},49504:function(e,t,r){"use strict";r.d(t,{gx:function(){return h},lL:function(){return f}});var n=r(59077),a=r(78511),o=r(25288),s=r(7616),l=r(52983),i=r(80719),c=r(94498);let u=["collections","all"],d=e=>{let{page:t,searchTerm:r,resourceId:a}=e;return(0,n.C)({queryKey:[...u,{page:t,resourceId:a,searchTerm:r}],queryFn:async()=>{let{data:e,success:n}=await (0,i.X)({page:t,resourceId:a,searchTerm:r});if(!n)throw Error(e);return e}})},f=e=>{let{page:t=1,resourceId:r}=e,n=(0,s.Dv)(c.GD);return(0,a.a)(d({page:t,searchTerm:n,resourceId:null!=r?r:null}))},h=()=>{let e=(0,o.NL)();return(0,l.useCallback)(()=>{e.invalidateQueries({queryKey:u})},[e])}},94498:function(e,t,r){"use strict";r.d(t,{GD:function(){return a},HQ:function(){return o},w0:function(){return s}});var n=r(24399);let a=(0,r(73139).rw)(null),o=(0,n.cn)({data:[],meta:{pagination:{nextPage:null,perPage:0,prevPage:null,currentPage:0}}}),s=(0,n.cn)([])},18547:function(e,t,r){"use strict";r.d(t,{$:function(){return l},a:function(){return s}});var n=r(12297),a=r(24399),o=r(73139);let s=(0,o.xu)(e=>{let{locale:t,id:r}=e;return(0,o.n7)((0,a.cn)(async()=>{if(null===r)return null;let e=await fetch("/api/resources/".concat(r,"?locale=").concat(t));if(!e.ok)throw Error("Failed to fetch regular resource ".concat(r));return await e.json()}))},n.vZ),l=(0,a.cn)(!1)},88161:function(e,t,r){"use strict";r.d(t,{E:function(){return n}});let n=(e,t)=>Object.entries(t).reduce((e,t)=>{let[r,n]=t;return e.replace("[".concat(r,"]"),n)},e)},59251:function(e,t,r){"use strict";let n;r.r(t),r.d(t,{AttentionEffect:function(){return j},Draggable:function(){return i},DraggableMobile:function(){return c},DraggableNavigation:function(){return k},NavigationButton:function(){return x}});var a=r(97458),o=r(52983);r(81602);var s=(0,r(22319).c)({defaultClassName:"_15qpb3h3 _15qpb3h1 $relative $flex $cursor-grab $overflow-x-auto",variantClassNames:{fit:{false:"_15qpb3h4",true:"_15qpb3h2 $-mx-20 $overflow-y-hidden"},overflowScrolling:{true:"_15qpb3h6"}},defaultVariants:{fit:!1},compoundVariants:[]});let l=e=>{let{active:t=!1,ref:r}=e,[n,a]=(0,o.useState)(t),[s,l]=(0,o.useState)(!1),[i,c]=(0,o.useState)(!1),[u,d]=(0,o.useState)(0),[f,h]=(0,o.useState)(0),[p,m]=(0,o.useState)(0),[v]=(0,o.useState)(5),g=(0,o.useCallback)(e=>{let t=r.current;t&&(l(!0),m(e.pageX-t.offsetLeft),d(t.scrollLeft))},[r]),x=(0,o.useCallback)(()=>{l(!1)},[]),b=(0,o.useCallback)(e=>{let t=r.current;if(t&&s){e.preventDefault();let r=u-(e.pageX-t.offsetLeft-p);Math.abs(t.scrollLeft-r)>v&&(c(!0),h(r),t.scrollLeft=r)}},[s,r,u,p,v]),w=(0,o.useCallback)(e=>{i&&(e.preventDefault(),e.stopPropagation()),c(!1)},[i]);return(0,o.useEffect)(()=>{if(a(t),n){let e=r.current;return e&&(e.addEventListener("mousedown",g),e.addEventListener("mouseleave",x),e.addEventListener("mouseup",x),e.addEventListener("mousemove",b),e.addEventListener("click",w)),()=>{e&&(e.removeEventListener("mousedown",g),e.removeEventListener("mouseleave",x),e.removeEventListener("mouseup",x),e.removeEventListener("mousemove",b),e.removeEventListener("click",w))}}},[t,n,g,x,b,w,r]),{isActive:n,position:f}},i=e=>{let{active:t=!0,children:r,fit:n=!1}=e,i=(0,o.useRef)(null),{isActive:c}=l({active:t,ref:i});return(0,a.jsx)("div",{ref:i,className:c?s({fit:n}):void 0,children:r})},c=e=>{let{active:t=!0,children:r,fit:n=!1}=e,i=(0,o.useRef)(null),{isActive:c}=l({active:t,ref:i});return(0,a.jsx)("div",{ref:i,className:c?s({fit:n}):"_15qpb3h0",children:r})};var u=r(78364),d=r(34224),f=r(39266),h=r(57291),p=r(40197),m=r(770),v=r(13807),g=r.n(v);let x=e=>{let{position:t,style:r,onClick:n,showCallUserAttentionEffect:s,className:l,dataCy:i,arrowAriaLabel:c,size:u="base"}=e,[d,f]=(0,o.useState)(!1),h=(0,o.useRef)(!1),m=(0,o.useCallback)(()=>{d||f(!0),null==n||n()},[d,n]);return(0,o.useEffect)(()=>{d||!1!==h.current||setTimeout(()=>{f(!0),h.current=!0},1e4)},[d]),(0,a.jsxs)("button",{onClick:m,className:(0,p.m6)(b({position:t,style:r,size:u}),l),"data-cy":i,"aria-label":c,children:[s&&!d&&(0,a.jsx)(j,{size:u}),(0,a.jsx)(w,{position:t,size:u,style:r})]})},b=(0,h.j)("$absolute $inset-y-0 $flex $w-35 $cursor-pointer $items-center $justify-center",{variants:{position:{left:"$-left-15",right:"$-right-15"},style:{default:'$bg-surface-0 before:$absolute before:$inset-y-0 before:$w-35 before:$from-white before:$to-transparent before:$content-[""] dark:before:from-surface-0',resources:""},size:{base:"",xs:""}},compoundVariants:[{style:"default",position:"left",class:"before:$left-35 before:$bg-gradient-to-r"},{style:"default",position:"right",class:"before:$right-35 before:$bg-gradient-to-l"}]}),w=e=>{let{position:t,size:r="base",style:n="default"}=e;return(0,a.jsx)("span",{className:y({size:r,style:n}),children:(0,a.jsx)(m.J,{as:"left"===t?f.Z:d.Z,size:r})})},y=(0,h.j)("$z-0 $flex $items-center $justify-center hover:$text-surface-foreground-2 text-surface-foreground-2",{variants:{size:{base:"$h-35 $w-35",xs:"$h-[24px] $w-[24px]"},style:{default:"",resources:"$rounded-full $bg-surface-0 $shadow-xs "}}}),j=e=>{let{size:t}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)($,{size:t,className:g().bigAttention}),(0,a.jsx)($,{size:t,className:g().smallAttention})]})},$=e=>{let{size:t,className:r}=e;return(0,a.jsx)("span",{className:(0,h.cx)("$absolute $cursor-default $rounded-full $bg-surface-3 $opacity-40 $backdrop-blur-md",r,"xs"===t?"$h-25 $w-25":"$h-35 $w-35")})},k=e=>{let{children:t,style:r="default",overflowScrolling:i=!0,className:c,width:d,nextNavigationButtonEffect:f,navigationClassName:h,arrowDataCy:p,arrowPrevAriaLabel:m,arrowNextAriaLabel:v,arrowSize:g}=e,b=(0,o.useRef)(null),w=(0,o.useRef)(null),[y,j]=(0,o.useState)(!1),[$,k]=(0,o.useState)(!1),{position:C}=l({active:!0,ref:b}),L=(0,o.useCallback)(()=>{let e=null==b?void 0:b.current,t=null==w?void 0:w.current;if(e&&t){let r=e.offsetWidth,n=t.scrollWidth,a=e.scrollLeft>=n-r;j(e.scrollLeft>0),k(n>r&&!a)}},[]),N=(0,o.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null==b?void 0:b.current;if(t){let r=t.offsetWidth*(e?1:-1);t.scroll({left:t.scrollLeft+r/2,behavior:"smooth"}),clearTimeout(n),n=setTimeout(L,500)}},[L]);return(0,o.useEffect)(()=>{L()},[C,L]),(0,o.useEffect)(()=>{let e=null==w?void 0:w.current,t=new ResizeObserver(L);return e&&t.observe(e),()=>{e&&t.unobserve(e)}},[L]),(0,a.jsxs)("div",{className:(0,u.W)("$group $relative",c),children:[(0,a.jsx)("div",{ref:b,className:s({overflowScrolling:i}),children:(0,a.jsx)("div",{className:"full"===d?"$w-full":"",ref:w,children:t})}),y&&(0,a.jsx)(x,{position:"left",style:r,onClick:()=>N(),className:h,dataCy:"".concat(p,"-left"),arrowAriaLabel:m,size:g}),$&&(0,a.jsx)(x,{position:"right",style:r,showCallUserAttentionEffect:f,onClick:()=>N(!0),className:h,dataCy:"".concat(p,"-right"),arrowAriaLabel:v,size:g})]})}},92336:function(e,t,r){"use strict";var n=r(97458);t.Z=e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,viewBox:"0 0 512 512","aria-hidden":!0,...e,children:(0,n.jsx)("path",{d:"M504.688 344.692 345.092 504.688c-4.9 4.899-11.3 7.399-17.7 7.399s-12.8-2.4-17.6-7.299L209.695 403.99c-9.8-9.7-9.8-25.599-.1-35.399s25.599-9.8 35.399-.1l82.398 83.098 141.896-142.297c9.8-9.799 25.6-9.799 35.4-.1 9.699 9.9 9.799 25.7 0 35.5m-330.492 94.497c-29.1-29.199-29.2-76.598-.1-105.897 29.199-29.299 76.798-29.399 106.097-.2l.2.2 46.999 47.399 106.397-106.698c8-8.1 17.6-14.099 28.1-17.799V64.998c0-10.3-5.9-19.5-14.8-23.199-9-3.8-19.2-1.3-25.799 6.2l-91.998 125.597L251.194 12.3c-4.2-7.6-11.8-12.3-20.2-12.3s-16.099 4.7-20.199 12.3l-78.198 160.696L40.599 47.899c-6.6-7.5-16.8-10-25.8-6.2C5.9 45.399 0 54.599 0 64.899V389.79c0 39.899 32.3 72.199 72.198 72.199h124.697z"})})},83273:function(e,t,r){"use strict";var n=r(97458);t.Z=e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:16,height:16,"aria-hidden":!0,...e,children:(0,n.jsx)("path",{d:"M486.2 50.2c-9.6-3.8-20.5-1.3-27.5 6.2l-98.2 125.5-83-161.1C273 13.2 264.9 8.5 256 8.5s-17.1 4.7-21.5 12.3l-83 161.1L53.3 56.5c-7-7.5-17.9-10-27.5-6.2C16.3 54 10 63.2 10 73.5v333c0 35.8 29.2 65 65 65h362c35.8 0 65-29.2 65-65v-333c0-10.3-6.3-19.5-15.8-23.3"})})},45227:function(e,t,r){"use strict";r.d(t,{Bw:function(){return n.B},to:function(){return a.t}});var n=r(4139),a=r(55287);r(62030)},62030:function(e,t,r){"use strict";r.d(t,{s:function(){return o}});var n=r(10893);let a=(e,t)=>{let r=e.toLocaleLowerCase();return r.startsWith("fr")||r.startsWith("sv")||r.startsWith("da")||r.startsWith("fi")||r.startsWith("no")?"".concat(t," %"):r.startsWith("tr")?"%".concat(t):"".concat(t,"%")},o=()=>{let{i18n:e}=(0,n.$G)(),t=e.language;return{onFormat:function(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=r?parseFloat(e.toFixed(2)).toString():e.toFixed(0);return t?a(t,n):"".concat(n,"%")}}}},81602:function(){},13807:function(e){e.exports={bigAttention:"attentionEffect_bigAttention__sx2Uw",smallAttention:"attentionEffect_smallAttention__DuzZW"}},59077:function(e,t,r){"use strict";function n(e){return e}r.d(t,{C:function(){return n}})}}]);